package com.qianfeng.smartmetting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianfeng.smartmetting.entity.Booking;
import com.qianfeng.smartmetting.entity.vo.MyBooking;
import org.apache.ibatis.annotations.Param;
import org.springframework.util.StringUtils;

import java.util.List;

public interface BookingMapper extends BaseMapper<Booking> {
    List<MyBooking> getMyBooking(@Param("userid") Integer userid);

    Integer isBooking(@Param("roomid") Integer roomid,@Param("starttime") String starttime
            ,@Param("endtime") String endtime);

}
